
ac.skill('神罚之雷'){
    model1 = [[437.mdl]],
    model2 = [[75.mdl]],
    on_add = function(self)
        local hero = self.owner
        self:gc(hero:event '单位-触发暴击'(function(_,_,target,data)
            if data.skill and data.skill.name==self.name then
                return
            end
            if self:is_cooling()==false and math.random(1,100) <=20 then
                self:active_cd()
                local point = target:get_point()
                local damage = self:dmg_get()
                point:effect{
                    model = self.model1,
                    time = 0.2,
                }
                ac.wait(200,function()
                    point:effect{
                        model = self.model2,
                        size = 0.5,
                        time = 0.2,
                    }
                    hero:aoe_damage(point,300,damage,self)
                end)
            end
        end))
    end,
}